package com.ymk.service.impl;

import com.ymk.base.mybatis.DaoRouter;
import com.ymk.base.mybatis.Pagination;
import com.ymk.bo.stat.StatMchYearBO;
import com.ymk.service.IStatMchYearService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
/**
 * <p>
 * 每年统计表 服务实现类
 * </p>
 *
 * @author 莫参商
 * @since 2023-05-05
 */
@Service
public class StatMchYearService implements IStatMchYearService {

    @Override
    public StatMchYearBO get(Map param) {
    return this.daoRouter.queryForObject("StatMchYear.loadStatMchYear",param);
    }

    @Override
    public List<StatMchYearBO> list(Map param) {
        return this.daoRouter.query("StatMchYear.loadStatMchYear",param);
    }

    @Override
    public List<StatMchYearBO> listForPage(Pagination pagination) {
        return this.daoRouter.query("StatMchYear.loadStatMchYearForPage",pagination);
    }

    @Override
    public void post(StatMchYearBO param) {
        this.daoRouter.insert("AStatMchYear.insertStatMchYear",param);
    }

    @Override
    public void update(StatMchYearBO param) {
        this.daoRouter.update("AStatMchYear.updateStatMchYear",param);
    }

    @Override
    public void del(StatMchYearBO param) {
        this.daoRouter.update("AStatMchYear.delStatMchYear",param);
    }

    @Autowired
    private DaoRouter daoRouter;

}
